Optimal. Leaf size=55 \[ -\frac {\tanh ^{-1}\left (\cos \left (a+b \log \left (c x^n\right )\right )\right )}{2 b n}-\frac {\cot \left (a+b \log \left (c x^n\right )\right ) \csc \left (a+b \log \left (c x^n\right )\right )}{2 b n} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 55, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.118, Rules used = {3853, 3855}
\begin {gather*} -\frac {\tanh ^{-1}\left (\cos \left (a+b \log \left (c x^n\right )\right )\right )}{2 b n}-\frac {\cot \left (a+b \log \left (c x^n\right )\right ) \csc \left (a+b \log \left (c x^n\right )\right )}{2 b n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3853
Rule 3855
Rubi steps
\begin {align*} \int \frac {\csc ^3\left (a+b \log \left (c x^n\right )\right )}{x} \, dx &=\frac {\text {Subst}\left (\int \csc ^3(a+b x) \, dx,x,\log \left (c x^n\right )\right )}{n}\\ &=-\frac {\cot \left (a+b \log \left (c x^n\right )\right ) \csc \left (a+b \log \left (c x^n\right )\right )}{2 b n}+\frac {\text {Subst}\left (\int \csc (a+b x) \, dx,x,\log \left (c x^n\right )\right )}{2 n}\\ &=-\frac {\tanh ^{-1}\left (\cos \left (a+b \log \left (c x^n\right )\right )\right )}{2 b n}-\frac {\cot \left (a+b \log \left (c x^n\right )\right ) \csc \left (a+b \log \left (c x^n\right )\right )}{2 b n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 107, normalized size = 1.95 \begin {gather*} -\frac {\csc ^2\left (\frac {1}{2} \left (a+b \log \left (c x^n\right )\right )\right )}{8 b n}-\frac {\log \left (\cos \left (\frac {1}{2} \left (a+b \log \left (c x^n\right )\right )\right )\right )}{2 b n}+\frac {\log \left (\sin \left (\frac {1}{2} \left (a+b \log \left (c x^n\right )\right )\right )\right )}{2 b n}+\frac {\sec ^2\left (\frac {1}{2} \left (a+b \log \left (c x^n\right )\right )\right )}{8 b n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.26, size = 61, normalized size = 1.11
method | result | size |
derivativedivides | \(\frac {-\frac {\csc \left (a +b \ln \left (c \,x^{n}\right )\right ) \cot \left (a +b \ln \left (c \,x^{n}\right )\right )}{2}+\frac {\ln \left (\csc \left (a +b \ln \left (c \,x^{n}\right )\right )-\cot \left (a +b \ln \left (c \,x^{n}\right )\right )\right )}{2}}{n b}\) | \(61\) |
default | \(\frac {-\frac {\csc \left (a +b \ln \left (c \,x^{n}\right )\right ) \cot \left (a +b \ln \left (c \,x^{n}\right )\right )}{2}+\frac {\ln \left (\csc \left (a +b \ln \left (c \,x^{n}\right )\right )-\cot \left (a +b \ln \left (c \,x^{n}\right )\right )\right )}{2}}{n b}\) | \(61\) |
risch | \(\frac {c^{i b} \left (x^{n}\right )^{i b} \left (c^{2 i b} \left (x^{n}\right )^{2 i b} {\mathrm e}^{\frac {3 b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{3}}{2}} {\mathrm e}^{-\frac {3 b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \mathrm {csgn}\left (i c \right )}{2}} {\mathrm e}^{-\frac {3 b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \mathrm {csgn}\left (i x^{n}\right )}{2}} {\mathrm e}^{\frac {3 b \pi \,\mathrm {csgn}\left (i c \,x^{n}\right ) \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right )}{2}} {\mathrm e}^{3 i a}+{\mathrm e}^{\frac {b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{3}}{2}} {\mathrm e}^{-\frac {b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \mathrm {csgn}\left (i c \right )}{2}} {\mathrm e}^{-\frac {b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \mathrm {csgn}\left (i x^{n}\right )}{2}} {\mathrm e}^{\frac {b \pi \,\mathrm {csgn}\left (i c \,x^{n}\right ) \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right )}{2}} {\mathrm e}^{i a}\right )}{b n \left (\left (x^{n}\right )^{2 i b} c^{2 i b} {\mathrm e}^{b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{3}} {\mathrm e}^{-b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \mathrm {csgn}\left (i c \right )} {\mathrm e}^{-b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \mathrm {csgn}\left (i x^{n}\right )} {\mathrm e}^{b \pi \,\mathrm {csgn}\left (i c \,x^{n}\right ) \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right )} {\mathrm e}^{2 i a}-1\right )^{2}}-\frac {\ln \left (c^{i b} \left (x^{n}\right )^{i b} {\mathrm e}^{-\frac {b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \mathrm {csgn}\left (i x^{n}\right )}{2}} {\mathrm e}^{\frac {b \pi \,\mathrm {csgn}\left (i c \,x^{n}\right ) \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right )}{2}} {\mathrm e}^{\frac {b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{3}}{2}} {\mathrm e}^{-\frac {b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \mathrm {csgn}\left (i c \right )}{2}} {\mathrm e}^{i a}+1\right )}{2 b n}+\frac {\ln \left (c^{i b} \left (x^{n}\right )^{i b} {\mathrm e}^{-\frac {b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \mathrm {csgn}\left (i x^{n}\right )}{2}} {\mathrm e}^{\frac {b \pi \,\mathrm {csgn}\left (i c \,x^{n}\right ) \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right )}{2}} {\mathrm e}^{\frac {b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{3}}{2}} {\mathrm e}^{-\frac {b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \mathrm {csgn}\left (i c \right )}{2}} {\mathrm e}^{i a}-1\right )}{2 b n}\) | \(552\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 2168 vs.
\(2 (51) = 102\).
time = 0.35, size = 2168, normalized size = 39.42 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 110 vs.
\(2 (51) = 102\).
time = 2.48, size = 110, normalized size = 2.00 \begin {gather*} -\frac {{\left (\cos \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2} - 1\right )} \log \left (\frac {1}{2} \, \cos \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right ) + \frac {1}{2}\right ) - {\left (\cos \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2} - 1\right )} \log \left (-\frac {1}{2} \, \cos \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right ) + \frac {1}{2}\right ) - 2 \, \cos \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )}{4 \, {\left (b n \cos \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2} - b n\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\csc ^{3}{\left (a + b \log {\left (c x^{n} \right )} \right )}}{x}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 6.43, size = 177, normalized size = 3.22 \begin {gather*} -\frac {\ln \left (-\frac {1{}\mathrm {i}}{x}-\frac {{\mathrm {e}}^{a\,1{}\mathrm {i}}\,{\left (c\,x^n\right )}^{b\,1{}\mathrm {i}}\,1{}\mathrm {i}}{x}\right )}{2\,b\,n}+\frac {\ln \left (\frac {1{}\mathrm {i}}{x}-\frac {{\mathrm {e}}^{a\,1{}\mathrm {i}}\,{\left (c\,x^n\right )}^{b\,1{}\mathrm {i}}\,1{}\mathrm {i}}{x}\right )}{2\,b\,n}+\frac {2\,{\mathrm {e}}^{a\,1{}\mathrm {i}}\,{\left (c\,x^n\right )}^{b\,1{}\mathrm {i}}}{b\,n\,\left (1+{\mathrm {e}}^{a\,4{}\mathrm {i}}\,{\left (c\,x^n\right )}^{b\,4{}\mathrm {i}}-2\,{\mathrm {e}}^{a\,2{}\mathrm {i}}\,{\left (c\,x^n\right )}^{b\,2{}\mathrm {i}}\right )}+\frac {{\mathrm {e}}^{a\,1{}\mathrm {i}}\,{\left (c\,x^n\right )}^{b\,1{}\mathrm {i}}}{b\,n\,\left ({\mathrm {e}}^{a\,2{}\mathrm {i}}\,{\left (c\,x^n\right )}^{b\,2{}\mathrm {i}}-1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________